package com.nefu.store.tools.util;

import cn.hutool.bloomfilter.BitMapBloomFilter;

public class BloomFilterUtil {

    private static BloomFilterUtil instance = new BloomFilterUtil();
    private static final BitMapBloomFilter filter = new BitMapBloomFilter(10);


    public static BloomFilterUtil getInstance() {
        return instance;
    }

    public void add(String str){
        filter.add(str);
    }

    public boolean contains(String str){
        return filter.contains(str);
    }



}
